package com.smart.car.gateway.controller;

import cn.hutool.core.lang.UUID;
import com.smart.car.common.res.bean.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 网关限流测试接口
 * @author: zoutao
 * @date: 2021-04-27
 */
@Api(value = "网关模块")
@Slf4j
@RestController
@RequestMapping("sentinel")
public class SentinelTestController {

    @ApiOperation("网关压测与限流接口")
    @GetMapping("/flowTest")
    public String test() {
        String dString = UUID.randomUUID().toString();
        log.info("网关自身的方法，产生的结果是：{}",dString);
        return dString;
    }

}
